package com.junzhiit.nengji.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.junzhiit.nengji.dao.WechatConfigDAO;
import com.junzhiit.nengji.model.WechatConfig;
import com.junzhiit.nengji.shop.service.WechatConfigService;
import com.junzhiit.nengji.shop.web.vo.ResultVO;

@Service
public class WechatConfigServiceImpl extends BaseServiceImpl implements WechatConfigService {
	
	@Autowired
	private WechatConfigDAO wechatConfigDAO;

	@Override
	public ResultVO getWechatConfigByAppId(String wcId) {
		ResultVO resultVO = new ResultVO();
		WechatConfig bo =wechatConfigDAO.getWechatConfigByWcId(wcId);
		resultVO.setData(bo);
		return resultVO;
	}

}
